import request from '@/utils/request'
const prefixUrl = process.env.VUE_APP_DATA_API
/**
 * @description 标签列表组
 */
export function getTagGroupList (params) {
  return request({
    baseURL: prefixUrl,
    url: '/api/v1/label_group/list',
    method: 'get',
    params
  })
}
/**
 * @description 添加标签组
 */
export function addTagGroup (data) {
  return request({
    baseURL: prefixUrl,
    url: '/api/v1/label_group/add',
    method: 'post',
    data
  })
}
/**
 * @description 修改标签组
 */
export function modifyTagGroup (data) {
  return request({
    baseURL: prefixUrl,
    url: '/api/v1/label_group/modify',
    method: 'put',
    data
  })
}

/**
 * @description 删除标签组
 */
export function delTagGroup (data) {
  return request({
    baseURL: prefixUrl,
    url: '/api/v1/label_group',
    method: 'delete',
    data
  })
}
